package com.tudouji.project.bill.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 折扣对象 discount
 * 
 * @author tudouji
 * @date 2021-04-29
 */
public class Discount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 销售单编号 */
    @Excel(name = "销售单编号")
    private String ordercode;

    /** 销售订单id */
    private String orderguid;

    /** 客户id */
    private String customerid;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customer;

    /** 扣前金额 */
    @Excel(name = "扣前金额")
    private BigDecimal amount;

    /** 结算金额 */
    @Excel(name = "结算金额")
    private BigDecimal finalamount;

    /** 差额 */
    @Excel(name = "差额")
    private BigDecimal differamount;

    /** 折扣率 */
    @Excel(name = "折扣率")
    private BigDecimal discount;

    /** 业务员id */
    private String salesmanid;

    /** 业务员 */
    @Excel(name = "业务员")
    private String salesman;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrdercode(String ordercode) 
    {
        this.ordercode = ordercode;
    }

    public String getOrdercode() 
    {
        return ordercode;
    }
    public void setOrderguid(String orderguid) 
    {
        this.orderguid = orderguid;
    }

    public String getOrderguid() 
    {
        return orderguid;
    }
    public void setCustomerid(String customerid) 
    {
        this.customerid = customerid;
    }

    public String getCustomerid() 
    {
        return customerid;
    }
    public void setCustomer(String customer) 
    {
        this.customer = customer;
    }

    public String getCustomer() 
    {
        return customer;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setFinalamount(BigDecimal finalamount) 
    {
        this.finalamount = finalamount;
    }

    public BigDecimal getFinalamount() 
    {
        return finalamount;
    }
    public void setDifferamount(BigDecimal differamount) 
    {
        this.differamount = differamount;
    }

    public BigDecimal getDifferamount() 
    {
        return differamount;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setSalesmanid(String salesmanid) 
    {
        this.salesmanid = salesmanid;
    }

    public String getSalesmanid() 
    {
        return salesmanid;
    }
    public void setSalesman(String salesman) 
    {
        this.salesman = salesman;
    }

    public String getSalesman() 
    {
        return salesman;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ordercode", getOrdercode())
            .append("orderguid", getOrderguid())
            .append("customerid", getCustomerid())
            .append("customer", getCustomer())
            .append("amount", getAmount())
            .append("finalamount", getFinalamount())
            .append("differamount", getDifferamount())
            .append("discount", getDiscount())
            .append("salesmanid", getSalesmanid())
            .append("salesman", getSalesman())
            .toString();
    }
}
